package com.youlv.yl.dao;

import com.youlv.yl.entity.hotel.HotelOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 订单表  Mapper 接口
 * </p>
 *
 * @author fenghe
 * @since 2022-01-25
 */
@Repository
public interface HotelOrderDao extends BaseMapper<HotelOrder> {

    /** 修改订单状态*/
    @Update("update h_hotel_order set flag = #{flag} where id = #{id}")
    int updateFlag(@Param("id")Long id, @Param("flag") Integer flag);
}
